﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="Edit.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_Category.Edit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>修改添加类别</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<script language="javascript" type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
<script type="text/javascript">
    $(function () {
        $("#btnEdit").click(function () {
            if ($.trim($("#txtName").val()) == "") {
                alert("类别名称不能为空！");
                $("#txtName").focus();
                return false;
            }
            if ($.trim($("#txtName").val()) != $("#ddlMenu").val()) {
                return confirm("确定修改类别吗？");
            }
        });
    });
</script>
</head>
<body>

<div class="frmstatic" style="display:block;">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="nav_menu">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align="left">
                <table>
                    <tr>
                        <td><img src="../images/main_home.gif" width="16" height="16" /></td>
                        <td><label>扩展&nbsp;&gt;&nbsp;类别管理&nbsp;&gt;&nbsp;修改类别</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <table>
                    <tr>
                        <td><img src="../images/arrow_left.png" width="16" height="16" /></td>
                        <td><label><a href="./Admin.aspx" class="sub_menu">类别列表</a></label> | </td>
                        <td><label><a href="./Add.aspx" class="sub_menu">添加类别</a></label> | </td>
                        <td><label><a href="javascript:window.history.back();" class="sub_menu">返回</a></label></td>
                    </tr>
                </table>
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>


<div class="frmstatic" style="display:block; margin-top:10px;">
<form id="form1" runat="server">
<span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
<div class="controls">

          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">


            
                <tr>
                  <td width="145" align="right" nowrap bgcolor="#F4FBFF">类别索引:</td>
                  <td width="1040" bgcolor="#F4FBFF">
                    <asp:TextBox CssClass="input" ID="txtNo" runat="server" 
                          Width="158px"></asp:TextBox>(推荐使用英文字母)
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                          ErrorMessage="类别索引不能为空" ControlToValidate="txtNo"></asp:RequiredFieldValidator>             
                  </td>
                </tr>            
            
                <tr>
                  <td width="145" align="right" nowrap bgcolor="#F4FBFF">类别名称:</td>
                  <td width="1040" bgcolor="#F4FBFF">
                    <asp:TextBox CssClass="input" ID="txtName" runat="server" 
                          Width="206px"></asp:TextBox>(推荐使用中文汉字)
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                          ErrorMessage="类别名称不能为空" ControlToValidate="txtName"></asp:RequiredFieldValidator>             
                  </td>
                </tr>
                
                <tr>
                  <td width="145" align="right" nowrap bgcolor="#F4FBFF">排序编号:</td>
                  <td width="1040" bgcolor="#F4FBFF">
                    <asp:TextBox CssClass="input" ID="txtOrder" runat="server" Width="100px"></asp:TextBox>(数字)
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                          ErrorMessage="排序编号不能为空" ControlToValidate="txtOrder"></asp:RequiredFieldValidator>             
                  </td>
                </tr>

                <tr>
                  <td width="145" align="right" nowrap bgcolor="#F4FBFF">类别值:</td>
                  <td width="1040" bgcolor="#F4FBFF">
                    <asp:TextBox CssClass="input" ID="txtHvalue" runat="server" Width="158px"></asp:TextBox>   
                  </td>
                </tr>

                <tr>
                  <td width="145" align="right" nowrap bgcolor="#F4FBFF">查询类型:</td>
                  <td width="1040" bgcolor="#F4FBFF">
                    <asp:RadioButtonList ID="rblIsHvalue" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                        <asp:ListItem Value="0" Selected="True">索引列 </asp:ListItem>
                        <asp:ListItem Value="1">类别值 </asp:ListItem>
                    </asp:RadioButtonList>           
                  </td>
                </tr>

                <tr>
                  <td bgcolor="#F4FBFF">&nbsp;</td>
                  <td bgcolor="#F4FBFF">
                      <asp:Button BackColor="#F4FBFF" CssClass="bt" ID="btnEdit" 
                          runat="server" Text=" 修改 " onclick="btnEdit_Click" />
                      <asp:HiddenField ID="hidReUrl" runat="server" Value="" />
                 </td>
                </tr>
              </table>
          
</div>
<span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</form>
</div>

</body>
</html>
